package com.lingnan.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.lingnan.pojo.Active;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 活动表 Mapper 接口
 * </p>
 *
 * @author 梁兴达
 * @since 2022-03-06
 */
@Repository
public interface ActiveMapper extends BaseMapper<Active> {

    @Update("update tb_active set is_deleted = 0 where id = #{id}")
    Integer recoveryById(@Param("id") Integer id);


}
